# --------------------------------------------------
# @Project      : convergence 
# @Time         : 2022/6/19 21:32
# @Description  : 
# @File         : secret.py
# @Author       : loseboy
# @Email        : loseboycn@qq.com
# @Software     : PyCharm 
# --------------------------------------------------

# 腾讯云服务
tencent_secretId = 'AKIDKRKwMghYifNnx3nkHXoBI8vc49zimFSO'
tencent_secretKey = 'LG4b6LM8dPqxpWYBYVkaAViEJ8gGiuSC'
tencent_SDKAppID = '1400465426'  # 短信应用ID
tencent_Sign = '奇台县财政局综合服务平台'  # 短信签名内容 # 临时借用
tencent_tpl_change = '796971'  # 更换手机号短信模板
tencent_tpl_forget = '796969'  # 找回密码短信模板
tencent_tpl_login = '796971'  # 验证码登陆短信模板
tencent_sms_time_out = 120  # 短信有效时间
tencent_number_count = 6

# 配置域名
SERVER_DOMAIN = 'https://api.xjwht.cn'

# 视频上传相关配置
max_chip_video_file_size_limit = 20  # 限制最大上传视频文件大小，大于该数，则对视频进行分片上传，单位:MB
max_chip_video_file_offset_time = 100  # 最大限制单个视频分片时长，单位：s

# 阿里云oss配置
ali_access_key_id = 'LTAI5t5vi2DKD24dr7UZdG9m'
ali_access_key_secret = '3IGqavwekZUwTBIv2rzKrg0oT7tERr'
ali_endpoint = 'https://oss-cn-beijing.aliyuncs.com'
ali_bucket_name = 'xjwhtcn-convergence'

# 抖音开放平台
douyin_oauth_url = 'https://open.douyin.com/'
douyin_client_key = 'awh01ai4ssmntxpp'  # str | 应用唯一标识
douyin_client_secret = '46766b604d32515412e6dffa11c0931b'
douyin_response_type = 'code'  # str | 必须为'code'
douyin_grant_type = 'authorization_code'  # str | 必须为'authorization_code'
douyin_scope = 'aweme.share,h5.share,user_info,renew_refresh_token,mobile_alert,mobile,item.comment,open.get.ticket'  # str | 应用授权作用域, 西瓜和头条需要进一步授权
douyin_redirect_uri = SERVER_DOMAIN + '/api/v1/douyin_access_token/'  # str | 授权成功后的回调地址，必须对应申请应用时填写的域名，如不清楚请联系应用申请人。

# 快手开放平台
kuaishou_oauth_url = 'https://open.kuaishou.com/'
kuaishou_app_id = 'ks670191921470539840'  # 注册时获取的应用ID
kuaishou_app_secret = 'fwehkBzuVr3kzOujjIQo-A'  # 注册时获取的APP secret
kuaishou_scope = 'user_info,user_base,user_video_delete,user_video_publish,user_video_info'  # 注册时申请的权限标识，多个scope可以使用","分割
kuaishou_response_type = 'code'  # 写死 code
kuaishou_redirect_uri = SERVER_DOMAIN + '/api/v1/kuaishou_access_token/'  # 授权成功后的回调地址，必须以http/https开头。和注册时的回调地址保持schema和子域名一致
kuaishou_ua = ''  # 运行环境,普通网页传pc, H5网页不传此参数即可

# 百家号相关
baijia_oauth_url = 'https://baijiahao.baidu.com/'

# 网易号相关
wangyihao_oauth_url = 'https://mp.163.com/'
wangyihao_client_id = 'vuLgM7VNck'
wangyihao_client_secret = '6h5wckPNxKwDFuUj'
wangyihao_response_type = 'code'
wangyihao_grant_type = 'authorization_code'
wangyihao_redirect_uri = SERVER_DOMAIN + '/api/v1/wangyihao_access_token/'  # 授权成功后的回调地址

# 高德地图API
amap_url = 'https://restapi.amap.com/v3/'
amap_key = 'a7737fd364a1df84b00f76e423e4b314'  # 高德Key
amap_keywords = ''  # 地点关键字
amap_types = ''  # 指定地点类型
amap_radius = '50000'  # 搜索半径 取值范围:0-50000
amap_sortrule = 'distance'  # 排序规则 [按距离排序：distance；综合排序：weight]
amap_page_size = 10  # page_size的取值1-25
amap_page_num = 1  # page_num的取值1-100
amap_output = 'json'  # 默认格式为json，目前只支持json格式

# 邮件服务配置
EMAIL_CONF = [
    {
        'email_host': 'smtp.163.com',
        'email_port': 25,
        'email_host_user': 'loseboycn@163.com',
        'email_host_password': 'IGJMMNCOGVEPRKBO',  # 授权码
        'email_use_tis': False,
        'email_from': '文和同融媒体分发平台'  # loseboycn@163.com
    },
    {
        'email_host': 'smtp.126.com',
        'email_port': 25,
        'email_host_user': 'loseboycn@126.com',
        'email_host_password': 'HOSCIGFXGSDTFAON',
        'email_use_tis': False,
        'email_from': '文和同融媒体分发平台'  # 'loseboycn@126.com',
    },
    {
        'email_host': 'smtp.yeah.net',
        'email_port': 25,
        'email_host_user': 'loseboycn@yeah.net',  # 'loseboycn@yeah.net',
        'email_host_password': 'JLPWOPOERWAGCXTC',
        'email_use_tis': False,
        'email_from': '文和同融媒体分发平台'  # 'loseboycn@sina.com',
    }
]
